package com.oa.cc.service;

import java.util.List;

import com.oa.cc.dao.MessageDao;
import com.oa.domain.Message;

public class MessageServiceImpl implements MessageService {

	private MessageDao messageDao;
	public void setMessageDao(MessageDao messageDao) {
		this.messageDao = messageDao;
	}
	public MessageDao getMessageDao() {
		return messageDao;
	}
	
	public void saveMessage(Message message) {
		messageDao.saveMessage(message);
	}
	public List<Message> getMessagesByEmpno(Long empno) {
		return messageDao.getMessagesByEmpno(empno);
	}

}
